Skip to main content

Count

Count[list,pattern] gives the number of elements in list that match pattern. 

Count[expr,pattern,levelspec] gives the total number of subexpressions matching pattern that appear at the levels in expr specified by levelspec.

Count[pattern] represents an operator form of Count that can be applied to an expression.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.